﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using venta_productos.LogicaNegocio;

namespace venta_productos.Presentacion
{
    /// <summary>
    /// Lógica de interacción para Fagregar.xaml
    /// </summary>
    public partial class Fagregar : Window
    {
        public Fagregar()
        {
            InitializeComponent();
        }
        //boton agregar
        private void btn_agregar_Click(object sender, RoutedEventArgs e)
        {
            manejop.agregarp(Convert.ToInt32(tb_nrop.Text),tb_desc.Text,Convert.ToInt32(tb_preci.Text));
            MessageBox.Show("producto agregado");
        }
    }
}
